@import (reference) "../../../../color.less";
@import (reference) "../../trade-common.less";
@draw-tools-container-width: 50px;

.trade-chart-content-container(
  @main-font-color, @second-font-color,
   @border-color, @hover-background-color
) {
  display: flex;
  flex-direction: row;
  position: relative;
  height: calc(100% - @module-title-container-height);
  .trade-chart-draw-toolbar-container {
    padding: 10px 0 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    color: @second-font-color;
    width: @draw-tools-container-width;
    font-size: 26px;
    border-right: solid 1px @border-color;
    .trade-chart-draw-toolbar-icon {
      width: 34px;
      height: 34px;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      border-radius: 2px;
      transition: all .2s;
      cursor: pointer;
      margin-bottom: 6px;
      &:hover {
        background-color: @hover-background-color;
      }
    }
  }
  .trade-original-view-container {
    height: 100%;
    width: calc(100% - @draw-tools-container-width);
    .trade-original-view {
      display: flex;
      height: calc(100% - 30px);
    }
    .trade-original-view-technical-indicator-container {
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
      border-top: solid 1px @border-color;
      height: 30px;
      .trade-original-view-technical-indicator {
        font-size: 12px;
        color: @second-font-color;
        cursor: pointer;
        &-selected {
          font-weight: bold;
          color: @main-blue-color;
        }
      }
    }
  }
}

.trade-chart-content-container-night {
  .trade-chart-content-container(
    @main-font-color-night,
    @second-font-color-night,
    @border-color-night,
    @hover-background-color-night
  )
}

.trade-chart-content-container-day {
  .trade-chart-content-container(
    @main-font-color-day,
    @second-font-color-day,
    @border-color-day,
    @hover-background-color-day
  )
}

